package edu.tgc.entity.code;

import java.util.UUID;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import org.springframework.data.annotation.CreatedBy;

import edu.tgc.entity.system.BaseEntity;

@Entity
public class TbScale extends BaseEntity {

    private static final long serialVersionUID = -3105014529947742063L;
    private Double level;
    private Integer scaleType; // 1：工程总造价，2：审减额
    private Double scaleValue;
    private TbCodeXmType xmType;

    public TbScale() {
        super();

    }

    public TbScale(UUID id) {
        super(id);

    }

    public Double getLevel() {
        return this.level;
    }

    public Integer getScaleType() {
        return this.scaleType;
    }

    public Double getScaleValue() {
        return this.scaleValue;
    }

    @CreatedBy
    @ManyToOne
    public TbCodeXmType getXmType() {
        return this.xmType;
    }

    public void setLevel(Double level) {
        this.level = level;
    }

    public void setScaleType(Integer scaleType) {
        this.scaleType = scaleType;
    }

    public void setScaleValue(Double scaleValue) {
        this.scaleValue = scaleValue;
    }

    public void setXmType(TbCodeXmType xmType) {
        this.xmType = xmType;
    }

}
